
 <script type="text/javascript">
	<!--
		
		$(document).ready(function(){
			var cat_id_ = $('#cat_id option: selected').val();
			
			$('#file_upload').uploadify(
					
					{
						'uploader': '<?= $this->baseUrl(TEMPLATE_URL. "/admin/upload/media/uploadify.swf");?>',
						'script' : '<?= $this->baseUrl($this->currentController . '/uploadify'); ?>',
						'cancelImg': '<?php echo $this->baseUrl(TEMPLATE_URL . "/admin/upload/images/cancel.png"); ?>',
						//'folder' : '<?php echo $this->baseUrl(PUBLIC_URL . "/files/images/full_images"); ?>',
						'multi' : true,
						'auto': true,
						'scriptData' : {'cat_id' : cat_id_},
						'fileDataName' : 'full_image',
						'onComplete' : function(event, ID, fileObj, response, data) {
								$('result').html(data.fileName);
							},
						'onAllComplete': function(event, data){
								document.location= document.location;
							}
					});
	
	});
//-->
</script>
    
  	
   
   <!-- select file -->
                 	
                 	<div id="toolbar-box">
                 		
                 		<div class="t"><div class="t"><div class="t"></div> </div></div>
                 		<div class="m">
                 			<div class="">
                 				<a style="font-size: 20px;">Click vào đây để upload!</a><br />
                 				<input type="file" name="file_upload" id="file_upload" />
                 			
                 			</div>
                 			<div class="clr"></div>
                 		</div>
                 		<div class="b"><div class="b"><div class="b"></div></div></div>
                 	
                 	</div> 
  <!-- in du lieu upload -->	   
                 	<div id="toolbar-box">
                 		
                 		<div class="t"><div class="t"><div class="t"></div> </div></div>
                 		<div class="m">
                 			<div class="">
                 				<a>Nhung file da upload</a>
                 					
                 				<div class="clr"></div>
                 			</div>
                 		</div>
                 		<div class="b"><div class="b"><div class="b"></div></div></div>
                 	
                 	</div>   
  
    